package org.example.service.impl;

import org.example.mapper.ActivationMapper;
import org.example.pojo.Activation;
import org.example.service.ActivationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Edward
 * @Date:2022-08-31 15:55
 * @subject:
 */
@Service
public class ActivationServiceImpl implements ActivationService {
    //调用Mapper接口
    @Autowired
    private ActivationMapper activationMapper;

    @Override
    public boolean addActivation(Activation activation) {
        return activationMapper.addActivation(activation);
    }

    @Override
    public boolean updateActivation(Activation activation) {
        return activationMapper.updateActivation(activation);
    }

    @Override
    public List<Activation> showAllActivation() {
        return activationMapper.showAllActivation();
    }

    @Override
    public List<Activation> selectActivationByName(String aName) {
        return activationMapper.selectActivationByName(aName);
    }

    @Override
    public boolean deleteActivationById(Integer aId) {
        return activationMapper.deleteActivationById(aId);
    }

}
